<?php
class Bap_sanggahan_bukti_model extends MY_Model {
	
    function Bap_sanggahan_bukti_model (){
        parent::MY_Model();
        $this->load->database();
        $this->table_name = "bap_sanggahan_bukti";
        $this->table_fields = array('bap_bukti_id','bap_bukti_file_size','bap_bukti_file_name',
        	'bap_bukti_file_type','bap_bukti_content','bap_id');
    }
    
    function select_by_id($id){
    	return $query = $this->db->get_where($this->table_name, array('bap_bukti_id' => $id));
    }
    
    function select_by_bap($bap_id){
    	return $query = $this->db->get_where($this->table_name, array('bap_id' => $bap_id));
    }
    
}